package cn.ywang.pattern;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author BeatificWang
 * @date 2019/3/22 22:06
 */
@RestController
@RequestMapping("test")
public class MyController {

	@Autowired
	private MyService myService;

	@GetMapping("invoke")
	public boolean invoke() {
		this.myService.invokeGet();
		return true;
	}
}
